const express = require('express');
const router = express.Router();
const { getCtr, postCtr, putCtr, delCtr, getCtr1, putCtr1,getRecycle,getRecycles,delRecycles,postRecycles,delRecycles1,postCtr1 } = require("../../../controller/admin/punch")

//查询全部数据
router.get("/punchsAll", getCtr)
router.get("/punchs", getCtr1)


router.post("/punchs", postCtr)
router.post("/punchs1", postCtr1)

// 下班打卡
router.put("/punchs", putCtr)
router.put("/punchs1", putCtr1)

// 删除
router.delete("/punchs", delCtr)

//回收站
//查询全部数据
router.get("/RecycleAll", getRecycle)
//模糊查询
router.get("/Recycles", getRecycles)
// 删除
router.delete("/Recycledel", delRecycles)
//恢复
router.delete("/Recycledels", delRecycles1)
//新增
router.post("/Recycleadd", postRecycles)
module.exports = router

